package com.ruoyi.member.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.member.mapper.UniMemberMapper;
import com.ruoyi.member.domain.UniMember;
import com.ruoyi.member.service.IUniMemberService;

/**
 * 会员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-25
 */
@Service
public class UniMemberServiceImpl implements IUniMemberService 
{
    @Autowired
    private UniMemberMapper uniMemberMapper;

    /**
     * 查询会员管理
     * 
     * @param id 会员管理主键
     * @return 会员管理
     */
    @Override
    public UniMember selectUniMemberById(Long id)
    {
        return uniMemberMapper.selectUniMemberById(id);
    }

    /**
     * 查询会员管理列表
     * 
     * @param uniMember 会员管理
     * @return 会员管理
     */
    @Override
    public List<UniMember> selectUniMemberList(UniMember uniMember)
    {
        return uniMemberMapper.selectUniMemberList(uniMember);
    }

    /**
     * 新增会员管理
     * 
     * @param uniMember 会员管理
     * @return 结果
     */
    @Override
    public int insertUniMember(UniMember uniMember)
    {
        uniMember.setCreateTime(DateUtils.getNowDate());
        return uniMemberMapper.insertUniMember(uniMember);
    }

    /**
     * 修改会员管理
     * 
     * @param uniMember 会员管理
     * @return 结果
     */
    @Override
    public int updateUniMember(UniMember uniMember)
    {
        return uniMemberMapper.updateUniMember(uniMember);
    }

    /**
     * 批量删除会员管理
     * 
     * @param ids 需要删除的会员管理主键
     * @return 结果
     */
    @Override
    public int deleteUniMemberByIds(Long[] ids)
    {
        return uniMemberMapper.deleteUniMemberByIds(ids);
    }

    /**
     * 删除会员管理信息
     * 
     * @param id 会员管理主键
     * @return 结果
     */
    @Override
    public int deleteUniMemberById(Long id)
    {
        return uniMemberMapper.deleteUniMemberById(id);
    }
}
